package com.ffapp.rainmonitorcustom.bean;

import my.TimeUtils;

public class OrderListData extends BasisBean {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * title : AUCTUS5
	 * total_token : 3000
	 * project_status : 0
	 * into_token : 0
	 * order_id : 8
	 * order_status : 0
	 * create_time : 1524713959
	 * figure : 0
	 * thumbnail : http://api.ukl.suncco.com
	 */

//	public static final  int ORDER_STATUS_CONFIRMING = 0, ORDER_STATUS_CONFIRMED = 1,ORDER_STATUS_NO_TRANS = 2;
	public static final  int ORDER_STATUS_NO_TRANS = 0, ORDER_STATUS_TRANSED = 1,ORDER_STATUS_CONFIRMED = 2,ORDER_STATUS_CANCEL = 3;

	private String title;
	private String total_token;
	private String project_status;
	private String into_token;
	private String order_price;
	private String order_id;
	private int order_status;
	private long create_time;
	private int figure;
	private String thumbnail;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTotal_token() {
		return total_token;
	}

	public void setTotal_token(String total_token) {
		this.total_token = total_token;
	}

	//项目状态（0.未开始 1.正在募集 2.已结束）
	public String getProject_status() {
		return project_status;
	}

	public void setProject_status(String project_status) {
		this.project_status = project_status;
	}

	public String getInto_token() {
		return into_token;
	}

	public void setInto_token(String into_token) {
		this.into_token = into_token;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	//	订单状态（0.确认中 1.已确认 2.未转帐）
	public int getOrder_status() {
		return order_status;
	}

	//	订单状态（0.确认中 1.已确认 2.未转帐）
	public String getOrder_status_str() {
		switch (order_status){
			case ORDER_STATUS_TRANSED:
				return "订单确认中";
			case ORDER_STATUS_CONFIRMED:
				return "下单成功";
			case ORDER_STATUS_NO_TRANS:
				return "未转账";
			case ORDER_STATUS_CANCEL:
				return "已取消";
		}
		return "订单确认中";
	}

	public void setOrder_status(int order_status) {
		this.order_status = order_status;
	}

	public long getCreate_time() {
		return create_time;
	}

	public void setCreate_time(long create_time) {
		this.create_time = create_time;
	}

	public String getCreate_time_str() {
		if(create_time == 0)return "";
		return TimeUtils.getTimeLongToStrByFormat(create_time*1000,"yyyy/MM/dd HH:mm:ss");
	}

	public int getFigure() {
		return figure;
	}

	public void setFigure(int figure) {
		this.figure = figure;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getOrder_price() {
		return order_price;
	}

	public void setOrder_price(String order_price) {
		this.order_price = order_price;
	}
}
